package com.aiyige.page.publish.photo.model;

/**
 * Created by zhuyakun on 2017/11/9.
 */

public class PublishPhotoItem {
    String photoUrl;
    String introduction;
    boolean expand;

    public PublishPhotoItem() {
    }

    private PublishPhotoItem(Builder builder) {
        setPhotoUrl(builder.photoUrl);
        setIntroduction(builder.introduction);
        setExpand(builder.expand);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public boolean isExpand() {
        return expand;
    }

    public void setExpand(boolean expand) {
        this.expand = expand;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }


    public static final class Builder {
        private String photoUrl;
        private String introduction;
        private boolean expand;

        private Builder() {
            photoUrl = "";
            expand = false;
            introduction = "";
        }

        public Builder photoUrl(String photoUrl) {
            this.photoUrl = photoUrl;
            return this;
        }

        public Builder introduction(String introduction) {
            this.introduction = introduction;
            return this;
        }

        public Builder expand(boolean expand) {
            this.expand = expand;
            return this;
        }

        public PublishPhotoItem build() {
            return new PublishPhotoItem(this);
        }
    }
}
